<script src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js" type="text/javascript"></script>
<script type="text/javascript">
wx.config({
    debug: true,
    appId: '<?php echo $jssdkConfig['appId'];?>',
    timestamp: '<?php echo $jssdkConfig['timestamp'];?>',
    nonceStr: '<?php echo $jssdkConfig['nonceStr'];?>',
    signature: '<?php echo $jssdkConfig['signature'];?>',
    jsApiList: [
      // 所有要调用的 API 都要加到这个列表中
      
      'onMenuShareTimeline',
      'onMenuShareAppMessage',
     
    ]
});
wx.ready(function () {
  var shareData = {
    title: '云互销',
    desc: '比天猫更底价格！满88包邮，5元可直接提现到红包。',
    link: window.location.href+'?u=baidu',
    imgUrl: 'http://y.xb363.com/logo.jpg'
  };
  wx.onMenuShareAppMessage(shareData);
  wx.onMenuShareTimeline(shareData);
});
</script>